x86: adjustments to memory_add()
authorJan Beulich <jbeulich@suse.com>
Mon, 31 Aug 2015 11:50:56 +0000 (13:50 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 31 Aug 2015 11:50:56 +0000 (13:50 +0200)
commitea0b5f0a6b3fe8991cf767770e09addd589102b4
tree83e8d85e3761c8b5782cfa267a0cbb421873fced
parent801ab48e5556cb54f67e3cb57f077f47e8663ced
x86: adjustments to memory_add()

The function should clean up after a failed map_pages_to_xen().

Sharing the M2P table with Dom0 needs to happen before adding the new
pages to the heap (so pages handed out by the allocator will be
represented in what a tool stack may need to map).

Avoid the IOMMU mapping loop whenever possible.

Drop a redundant setting of 'ret'.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/x86_64/mm.c